var __extends =
    (this && this.__extends) ||
    (function () {
      var t = function (n, o) {
        return (t =
          Object.setPrototypeOf ||
          ({ __proto__: [] } instanceof Array &&
            function (t, n) {
              t.__proto__ = n;
            }) ||
          function (t, n) {
            for (var o in n)
              Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
          })(n, o);
      };
      return function (n, o) {
        function r() {
          this.constructor = n;
        }
        if ("function" != typeof o && null !== o)
          throw new TypeError(
            "Class extends value " + String(o) + " is not a constructor or null"
          );
        t(n, o),
          (n.prototype =
            null === o
              ? Object.create(o)
              : ((r.prototype = o.prototype), new r()));
      };
    })(),
  NormalInputDialog = (function (t) {
    function n() {
      var n = t.call(this) || this;
      return (
        n.btn_input_normal_sure.on(Laya.Event.CLICK, n, n.okButtonDidClick),
        n.btn_input_normal_close.on(Laya.Event.CLICK, n, n.close),
        n
      );
    }
    return (
      __extends(n, t),
      (n.prototype.okButtonDidClick = function () {
        var t = this.text_input_content.text;
        t.length <= 0 || (this.method.call(this.caller, t), this.close());
      }),
      (n.showNormalInputDialog = function (t, o) {
        null == this.normal &&
          ((this.normal = new n()), (this.normal.zOrder = 2e3)),
          this.normal.popup(!0),
          (this.normal.caller = t),
          (this.normal.method = o);
      }),
      (n.close = function () {
        this.normal && (this.normal.close(), (this.normal = null));
      }),
      n
    );
  })(ui.common.NormalInputDialogUI);
